
<script>
	function onLoad() {
		window.setTimeout(function(){
			var dv = document.createElement("div");
			dv.innerHTML = "created by setTimeout";
			document.body.appendChild(dv);
		}, 5000);

		window.setInterval(function(){
			var dv = document.createElement("div");
			dv.innerHTML = "created by setInterval";
			document.body.appendChild(dv);
		}, 500)
		
	}
	
	window.onload = onLoad;

</script>

<body>

</body>